AudioRoute enum Null safety

音频播放路由

Constants

earpiece → const AudioRoute

设备自带听筒,一般用于通话的播放硬件。

const AudioRoute(2)
headset → const AudioRoute

有线耳机

const AudioRoute(1)
headsetBluetooth → const AudioRoute

蓝牙耳机

const AudioRoute(4)
headsetUSB → const AudioRoute

USB 设备

const AudioRoute(5)
speakerphone → const AudioRoute

设备自带扬声器,一般用于免提播放的硬件。

const AudioRoute(3)
unknown → const AudioRoute

未知设备

const AudioRoute(0)
values → const List<AudioRoute>

A constant List of the values in this enum, in order of their declaration.

const List<AudioRoute>

Properties

hashCode → int
The hash code for this object. [...]
read-only, inherited
index → int

The integer index of this enum.

final
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() → String
A string representation of this object. [...]
override

Operators

operator ==(Object other) → bool
The equality operator. [...]
inherited